package com.example.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/***
 *
 * 时间帮助类
 */
public class TimeUtils {

    /****
     * 当前时间往后几分钟
     * @param minute
     * @return
     */
    public static Date nowAddMinute(int minute) {
        Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.MINUTE, minute);
        return calendar.getTime();
    }
}
